package detail

import (
	"awesomeProject1/models/pojo"
	"awesomeProject1/pkg/gintool"
	"time"
	"xorm.io/xorm"
)

type Service interface {
	// GetTransDetailsList 获取数据分析前的转账详情的原始数据
	GetTransDetailsList(startDate, endDate time.Time, pager *gintool.Pager) (list []*models.MyLoanDetails, total int64, code int)

	// GetOrgMappingList 获取总行支行关系映射表数据
	GetOrgMappingList(pager *gintool.Pager) (list []*models.LoanOrg, total int64, code int)

	// AddOrgMappingList 添加总行支行关系映射表数据
	AddOrgMappingList(orgMappingList []*models.LoanOrg) (affectedCount int64, err error)

	// GetSendDetailsList 获取本行已经发送的详情上传数据
	GetSendDetailsList(engine *xorm.Engine, startDate, endDate time.Time) (list []models.UploadDetailsRecord, total int64, code int)

	//GetFirstLoanDetailsByReceiptIdHash 通过借据号哈希查询到此笔借据的放款信息
	GetFirstLoanDetailsByReceiptIdHash(receiptIdHash string) (firstLoanList []models.FirstLoan, count int64, err error)
}
